package com.zxl.designpattern.structure.bridge;

/**
 * @author zxl
 * @version 1.0
 * @description 旅行计划实现-商务旅行
 * @date 2025/6/1 14:22
 */
public class BusinessTravel extends TravelPlan {
    private String meetingLocation;

    public BusinessTravel(Transport transport, String meetingLocation) {
        super(transport);
        this.meetingLocation = meetingLocation;
    }

    @Override
    public void execute() {
        System.out.println("商务旅行计划:");
        transport.move("公司", meetingLocation);
        System.out.println("参加商务会议");
        transport.move(meetingLocation, "公司");
    }
}